package com.sinaapp.kltq.dinosaurweather;

import android.app.Fragment;
import android.app.FragmentTransaction;
import android.net.Uri;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;


public class EmptyActivity extends ActionBarActivity
        implements RealtimeFragment.OnFragmentInteractionListener
        , TitleFragment.OnFragmentInteractionListener
        , UpdateTimeFragment.OnFragmentInteractionListener
        , ForecastFragment.OnFragmentInteractionListener
        , ZhishusFragment.OnFragmentInteractionListener {

    @Override
    public void onFragmentInteraction(Uri uri) {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_empty);

        // put correct fragment to page
        FragmentTransaction transaction;
        transaction = getFragmentManager().beginTransaction();
        Fragment titleFragment = new TitleFragment();
        transaction.replace(R.id.emptyHeader, titleFragment);
        transaction.commit();
    }
}
